﻿<UserControl x:Class="UIComposition.Modules.Employee.EmployeesListView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data">
    <StackPanel>
        <TextBlock Width="Auto" Height="Auto" Text="Select Employee:" Padding="0,0,0,0" FontWeight="Bold" Margin="0,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"/>
        <Controls:DataGrid x:Name="EmployeesList" ItemsSource="{Binding}" SelectionChanged="EmployeesList_SelectionChanged" AutomationProperties.AutomationId="EmployeesListGrid" AutoGenerateColumns="False">
            <Controls:DataGrid.Columns>
                <Controls:DataGridTextColumn Header="First Name" Binding="{Binding Path=FirstName}" />
                <Controls:DataGridTextColumn Header="Last Name" Binding="{Binding Path=LastName}" />
            </Controls:DataGrid.Columns>
        </Controls:DataGrid>
    </StackPanel>
</UserControl>
